﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chat_Model
{
    /// <summary>
    /// 聊天对话记录（投票消息表）
    ///</summary>
    [SugarTable("lar_talk_records_vote")]
    public class LarTalkRecordsVote
    {
        /// <summary>
        /// 投票ID 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public string Id { get; set; }
        /// <summary>
        /// 消息记录ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="record_id"    )]
         public string RecordId { get; set; }
        /// <summary>
        /// 用户ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="user_id"    )]
         public string UserId { get; set; }
        /// <summary>
        /// 投票标题 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="title"    )]
         public string Title { get; set; }
        /// <summary>
        /// 答题模式[0:单选;1:多选;] 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="answer_mode"    )]
         public string AnswerMode { get; set; }
        /// <summary>
        /// 答题选项 
        ///</summary>
         [SugarColumn(ColumnName="answer_option"    )]
         public int? AnswerOption { get; set; }
        /// <summary>
        /// 应答人数 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="answer_num"    )]
         public string AnswerNum { get; set; }
        /// <summary>
        /// 已答人数 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="answered_num"    )]
         public string AnsweredNum { get; set; }
        /// <summary>
        /// 投票状态[0:投票中;1:已完成;] 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="created_at"    )]
         public DateTime? CreatedAt { get; set; }
        /// <summary>
        /// 更新时间 
        ///</summary>
         [SugarColumn(ColumnName="updated_at"    )]
         public DateTime? UpdatedAt { get; set; }
    }
}
